<template>
  <h3 class="title">测试mockData</h3>
  <div class="mock-container">
    {{ data }}
  </div>
</template>
<script setup lang="ts">
  import {onMounted, reactive, ref } from 'vue'
  import { getUserInfo } from "@/api/authController"
  const data = ref({})

  const initData =async () =>{
    const userInfo = await getUserInfo()
    //console.log(userInfo,'testMockAxios测试');
    data.value = userInfo.data
  }

  onMounted(()=>{
     initData()
  })

</script>
<style lang="scss" scoped>
  .title {
    text-align: center;
  }
 .mock-container {
   margin-top: 10px;
 }
</style>